#include "pic_model.h"

Pic_model::Pic_model()
{
    this->delData();
}

void Pic_model::setNameAndSize(QString name, QString size)
{
    this->s_name = name;
    this->s_size = size;
    this->setEnable(true);
}

void Pic_model::setEnable(bool TorF)
{
    this->enable = TorF;
}

void Pic_model::description()
{
    if(this->enable)
    {
        qDebug() << "Picmodel data: [  " << this->s_name << "  ] size: [" << this->s_size << "  ]" << endl;
    }
}

void Pic_model::delData()
{
    this->setNameAndSize("","0 x 0");
    this->setEnable(false);
}
